package javaweb_work01.main.Service;

import javaweb_work01.main.Dao.ShowStudentsDao;
import javaweb_work01.main.Utils.PageContrl;
import javaweb_work01.main.Entity.Students;
import javaweb_work01.main.Factory.StudentsFactory;

import java.util.List;

public class ShowService {
    //合成复用原则
    private ShowStudentsDao showStudentsDao;

    public ShowService(){
        this.showStudentsDao = StudentsFactory.getShowStudentsDao();
    }

    public List<Students> showStudentsService(PageContrl page){
        return showStudentsDao.showStudents(page);
    }
}
